package com.xcc.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.config.annotation.CorsRegistration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;

import java.util.Arrays;

/**
 * @author frosty
 * @description
 * @date 2019-11-20 20:10:35
 */

@EnableDiscoveryClient  /*发现  */
@EnableEurekaClient
@SpringBootApplication
@EnableFeignClients
//@EnableHystrix
@ComponentScan(basePackages = {"com.xcc"})
@MapperScan(basePackages = {"com.xcc.common.domain.mapper"})
public class UserApplication   {
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class,args);
    }

}
